import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgZorroAntdModule, NZ_I18N, en_US } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { registerLocaleData } from '@angular/common';
import en from '@angular/common/locales/en';
import { OneroomComponent } from './oneroom/oneroom.component';
import { TworoomComponent } from './tworoom/tworoom.component';
import { ThreeroomComponent } from './threeroom/threeroom.component';
import { FourroomComponent } from './fourroom/fourroom.component';
import { VillaComponent } from './villa/villa.component';
import { CompanyComponent } from './company/company.component';
import { HotelComponent } from './hotel/hotel.component';
import { OthersComponent } from './others/others.component';
import {DataService} from './data.service';


registerLocaleData(en);

@NgModule({
  declarations: [
    AppComponent,
    OneroomComponent,
    TworoomComponent,
    ThreeroomComponent,
    FourroomComponent,
    VillaComponent,
    CompanyComponent,
    HotelComponent,
    OthersComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    NgZorroAntdModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule
  ],
  providers: [DataService, { provide: NZ_I18N, useValue: en_US }],
  bootstrap: [AppComponent]
})
export class AppModule { }
